#目标：使用seaborn库绘图，绘制sin(x),cos(x),y=-x函数图
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np


plt.rcParams['font.sans-serif'] = 'SimHei'
plt.rcParams['axes.unicode_minus'] = False

xList=np.arange(0,10,0.01)

#sin(x)
sns.lineplot(x=xList,y=np.sin(xList))

#cos(x)
sns.lineplot(x=xList,y=np.cos(xList))

#y=-x
sns.lineplot(x=xList,y=-xList)

plt.xlabel('x')
plt.ylabel('y')
plt.title('绘制函数图像')
plt.show()